package com.example.drug.jpa;

import java.util.List;

import com.example.common.entity.EnumConfig;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface EnumConfigRepository extends JpaRepository<EnumConfig, String>{
    @Query(value = "select * from sys_enum_config where e_type_tinyint = 3 and disable_bit = 0 order by code_nvarchar desc",nativeQuery = true)
    List<EnumConfig> findAllByEtype();
}
